Package com.cisco.pt.ipc.sim.impl
Class LoopbackManagerImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.LoopbackManagerImpl
- All Implemented Interfaces:
IPCObject,LoopbackManager,Process
Information provided by the PKI file:
\class LoopbackManager
\brief LoopbackManager is the process that manages loopback interfaces.
\example network().getDevice("Router0").getProcess("LoopbackManager")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionLoopbackManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLoopback(int loopbackNumber) Information provided by the PKI file:getLoopback(int loopbackNumber) Information provided by the PKI file:getLoopbackAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:booleanremoveLoopback(int loopbackNumber) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
LoopbackManagerImpl
public LoopbackManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getLoopback
Information provided by the PKI file:
\brief Returns the loopback interface at the specified loopback interface number. \param loopbackNumber, the loopback interface number of interest. \return RouterPort, the RouterPort object at the specified loopback interface number.- Specified by:
getLoopbackin interfaceLoopbackManager- Parameters:
loopbackNumber- Takes in a parameter of loopbackNumber- Returns:
- RouterPort Returns a RouterPort
-
getLoopbackAt
Information provided by the PKI file:
\brief Returns the loopback interface at the specified index. \param index, the index of the loopback interface of interest. \return RouterPort, the RouterPort object at the specified index.- Specified by:
getLoopbackAtin interfaceLoopbackManager- Parameters:
index- Takes in a parameter of index- Returns:
- RouterPort Returns a RouterPort
-
addLoopback
public boolean addLoopback(int loopbackNumber) Information provided by the PKI file:
\brief Adds a loopback interface with the specified loopback interface number. \param loopbackNumber, the loopback interface number. \return bool, true if successful, otherwise false.- Specified by:
addLoopbackin interfaceLoopbackManager- Parameters:
loopbackNumber- Takes in a parameter of loopbackNumber- Returns:
- boolean Returns a boolean
-
removeLoopback
public boolean removeLoopback(int loopbackNumber) Information provided by the PKI file:
\brief Removes the loopback interface with the specified loopback interface number. \param loopbackNumber, the loopback interface number of interest. \return bool, true if successful, otherwise false.- Specified by:
removeLoopbackin interfaceLoopbackManager- Parameters:
loopbackNumber- Takes in a parameter of loopbackNumber- Returns:
- boolean Returns a boolean
-
getLoopbackCount
public int getLoopbackCount()Information provided by the PKI file:
\brief Returns the number of loopback interfaces. \return int, the number of loopback interfaces.- Specified by:
getLoopbackCountin interfaceLoopbackManager- Returns:
- int Returns a int
-